package routers

import (
	"gosync/controllers"
	"github.com/astaxie/beego"
)


//主要的路由文件
func init() {

	beego.Notice("##init Machine##")

	//路由地址前缀
	routebb.prefix="/admin"
	routebb.RouteSet("/mc_list", &controllers.MachineController{}, "get:McList")
	routebb.RouteSet("/mc_list_api", &controllers.MachineController{}, "get:McListApi")

	routebb.RouteSet("/mc_add", &controllers.MachineController{}, "get:AddMc")
	routebb.RouteSet("/mc_add", &controllers.MachineController{}, "post:AddMcDo")
	routebb.RouteSet("/mc_edit", &controllers.MachineController{}, "get:EditMc")
	routebb.RouteSet("/mc_edit", &controllers.MachineController{}, "post:EditMcDo")
	routebb.RouteSet("/mc_del", &controllers.MachineController{}, "post:DelMcDo")
}
